//
//  CXMatchResult.swift
//  Project03-Weibo-swift
//
//  Created by w on 16/2/1.
//  Copyright © 2016年 w. All rights reserved.
//

import UIKit

/// 正则表达式捕获内容模型；面向模型开发
class CXMatchResult: NSObject {
    /// 捕获字符串
    var capturedString: String
    /// 捕获的范围
    var capturedRange: NSRange
    
    init(capturedRange: NSRange, capturedString: String){
        
        self.capturedString = capturedString
        self.capturedRange = capturedRange
//        super.init()  系统帮我们自动添加了这行代码
    }
    
}
